| Conditions | 1 |
| Paths | 1 |
| Total Lines | 22 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | const assert = require('assert'); |
||
| 9 | /* global describe, it */ |
||
| 10 | |||
| 11 | describe('AsciiConverterTest', () => { |
||
| 12 | describe('#test_ascii_converter()', () => { |
||
| 13 | it('should convert geez number to ascii', () => { |
||
| 14 | TestCase.geezNumberTestDataProvider().forEach(([$ascii, $geez]) => { |
||
| 15 | const $result = asciiConverter.convert($geez); |
||
| 16 | assert.equal($ascii, $result); |
||
| 17 | }); |
||
| 18 | }); |
||
| 19 | }); |
||
| 20 | |||
| 21 | describe('#test_invalid_number_throw_exception()', () => { |
||
| 22 | it('should throws NotGeezArgumentException', () => { |
||
| 23 | TestCase.invalidNumberDataProvider().forEach(([$value]) => { |
||
| 24 | assert.throws(() => { |
||
| 25 | asciiConverter.convert($value); |
||
| 26 | }, NotGeezArgumentException); |
||
| 27 | }); |
||
| 28 | }); |
||
| 29 | }); |
||
| 30 | }); |
||
| 31 |